package unimelb.distSystems.project2;

/*
 * Lim Ching Lih, 308721
 * Yu Xia, 351025
 * Carlos Vasconcelos, 193554
 */

import java.io.Serializable;
import java.util.LinkedList;

/*
 * RacingSession class is an entity type for racing session 
 */
public class RacingSession implements Serializable{
	private long id;
	private Track track;
	private LinkedList<Car> cars;
	
	/*
	 * Constructor
	 */
	public RacingSession(long id,Track track,LinkedList<Car> cars)
	{
		this.id=id;
		this.cars=cars;
		this.track=track;
	}
	
	/*
	 * Retrieve the racing session ID for 3D engine
	 */
	public long getSessionID()
	{
		return id;
	}
	
	/*
	 * Retrieve the track instance for 3D engine
	 */
	public Track getTrack()
	{
		return track;
	}
	
	/*
	 * Retrieve the car list for 3D engine
	 */
	public LinkedList<Car> getCars()
	{
		return cars;
	}
}
